//
//  HomeSubGrid3ViewController.m
//  QuLuoMianApp
//
//  Created by Sierra on 2017/12/20.
//  Copyright © 2017年 科大讯飞. All rights reserved.
//

#import "HomeSubGrid3ViewController.h"
#import "BBSpaceViewController.h"

#import "HomeFood1ViewController.h"
#import "HomeFood2ViewController.h"
#import "HomeFood3ViewController.h"

@interface HomeSubGrid3ViewController ()

@end

@implementation HomeSubGrid3ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title = @"美食";
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (IBAction)jumpSpaceVC:(UIButton *)sender {
    

    
    switch (sender.tag) {
        case 10:
        {
            HomeFood1ViewController * vc = [HomeFood1ViewController new];
            [self.navigationController pushViewController:vc animated:YES];
        }
            break;
        case 20:
        case 30:
        {
            HomeFood2ViewController * vc = [HomeFood2ViewController new];
            [self.navigationController pushViewController:vc animated:YES];
        }
            break;
        case 40:
        {
            HomeFood3ViewController * vc = [HomeFood3ViewController new];
            [self.navigationController pushViewController:vc animated:YES];
            
        }
            break;
            
        default:
            break;
    }
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
